<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.hz.ys_financial.dao.FinancialDao,com.hz.framework.util.*"%><%@page import="com.hz.ys_clientorder.bean.Orderinfo"%><%@page import="com.hz.ys_clientorder.bean.Clientinfo"%><%@page import="java.util.List"%><%@page import="com.hz.ys_clientorder.bean.Taskinfo"%><%@page import="com.hz.ys_stock.bean.PresMakings"%>






<%@ include file="../common/commonJS.jsp" %>
<%@ include file="../common/commonLabel.jsp" %>
                  <%
                  Orderinfo o = (Orderinfo)request.getAttribute("order");
                  Clientinfo c = (Clientinfo)request.getAttribute("client");
                  List<Taskinfo> tlist = (List<Taskinfo>)request.getAttribute("tlist");
                  List<PresMakings> pm = (List<PresMakings>)request.getAttribute("pm");
               %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>无标题文档</title>
</head>
<body>
<table width="760" border="0" cellpadding="0" cellspacing="0" >
  <tr>
     <td>
     <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" class="MainBody" id="111">
      <tr>
        <td class="MainBody_title">订单资料</td>
      </tr>
        <tr>
          <td class="MainBody_body" id="aaa">
                  <table  border="0" cellpadding="0" cellspacing="0" class="MainBody_table">
                  		<tr>
			<td align="right" colspan="4" ><input type="button" onclick="history.back()" value="返 回" class="btn" /></td>
		</tr>
                <tr>
                  <td  colspan="4" class="bg_title">客 户 信 息</td>
                </tr>
                <tr>
                  <th width="150px;"  nowrap="nowrap">客户姓名</th>
                  <td width="200px;">
                  <%=c.getClientName()%>
                  </td>
          
                   <th width="150"  nowrap="nowrap">单位名称</th>
                  <td width="200px;" ><%=c.getUnitName()%></td>
                
                </tr>
                
                <tr>
                  <th nowrap="nowrap">移动电话</th>
                  <td ><%=c.getPhone()%></td>
                  <th nowrap="nowrap">固定电话</th> 
                  <td ><%=c.getTel()%></td>
                </tr>
              
               <tr>
                  <th nowrap="nowrap">其他联系人</th>
                  <td ><%=o.getOtherClient()%></td>
                  <th nowrap="nowrap">其他联系方式</th> 
                  <td ><%=o.getOtherTel()%></td>
                  
                </tr>
                <tr>
                  <th nowrap="nowrap">送货地址</th>
                  <td ><%=o.getOtherAddress() %></td>
                  <th nowrap="nowrap">提货方式</th> 
                  <td style="text-align: left;">
                  <%=o.getCarryType() %></td>
                  
                </tr>
                
                 <tr>
                  <td  colspan="4" class="bg_title">订 单 详 情</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">订单名称</th>
                  <td ><%=o.getName() %></td>
                  
                 
                  <th nowrap="nowrap">订单类型</th> 
                  <td>
                  <%=o.getOrderType() %>
                </tr>
                
                   <tr>
                  <th nowrap="nowrap">下单日期</th>
                  <td ><%=o.getOrderTime() %></td>
              <th nowrap="nowrap">印品种类</th>
              <td ><%=o.getGoodsType() %></td>
                </tr>
                
                   <tr>
                   
                  <th nowrap="nowrap">交货日期</th> 
                  <td ><%=o.getFinishTime() %></td>
                 <th>是否代收</th><td><%=o.getIsCollection() %></td>
                </tr>
                
                   <tr>
                  <th nowrap="nowrap">结账日期</th> 
                  
                  <td ><%=o.getBalanceTime() %></td>
                  <th nowrap="nowrap">设计人</th>
                  <td ><%=o.getDesigner() %></td>
                </tr>
                
              <!--<tr>
                    <th nowrap="nowrap">工单号</th>
                  <td ><%=o.getTaskId() %></td>
                  <th nowrap="nowrap">成品尺寸</th>
                  <td ><%=o.getFinishSize() %></td> 
                </tr>
                
                   <tr>
                  <th nowrap="nowrap">数量</th> 
                  
                  <td ><%=o.getAmount() %></td>
                  <th nowrap="nowrap">单位</th>
                  <td ><%=o.getUnit() %></td>
                </tr>   -->
                <tr>
                  <td  colspan="4" class="bg_title">工 艺 详 情</td>
                </tr>
                
                  <tr>
                    <th nowrap="nowrap">印品说明</th>
                  <td colspan="3" style="text-align: left;"><textarea name="o.caption" cols="65" rows="2" readonly="readonly"><%=o.getCaption() %></textarea></td>
                 </tr>
                 
                  <tr>
                    <th nowrap="nowrap">设计制作要求</th>
                  <td><textarea name="o.designRequest" readonly="readonly"><%=o.getDesignRequest() %></textarea></td>
                    <th nowrap="nowrap">印刷工艺要求</th>
                  <td><textarea name="o.technologyRequest" readonly="readonly"><%=o.getTechnologyRequest() %></textarea></td>
                 </tr>
                  <tr>
                    <th nowrap="nowrap">拼晒要求</th>
                  <td><textarea name="o.buleRequest" readonly="readonly"><%=o.getBuleRequest() %></textarea></td>
                    <th nowrap="nowrap">质检要求</th>
                  <td><textarea name="o.qualityRequest" readonly="readonly" ><%=o.getQualityRequest() %></textarea></td>
                 </tr>
                     <tr>
                    <th nowrap="nowrap">印后要求</th>
                  <td><textarea name="o.finishRequest" readonly="readonly"><%=o.getFinishRequest() %></textarea></td>
                    <th nowrap="nowrap">送货包装要求</th>
                  <td><textarea name="o.packageRequest" readonly="readonly"><%=o.getPackageRequest() %></textarea></td>
                 </tr>
                     <tr>
                    <th nowrap="nowrap">客户提供</th>
                  <td><textarea name="o.clientOffer" readonly="readonly"><%=o.getClientOffer() %></textarea></td>
                    <th nowrap="nowrap">外协内容</th>
                  <td><textarea name="o.consultContent" readonly="readonly"><%=o.getConsultContent() %></textarea></td>
                 </tr><%--
                  <tr>
                    <th nowrap="nowrap">图片</th>
                  <td colspan="3" style="text-align: left;"></td>
                 </tr> --%>
                    <tr>
                    <th nowrap="nowrap">备注</th>
                  <td colspan="3" style="text-align: left;"><textarea name="o.description" cols="65" rows="2" readonly="readonly"><%=o.getDescription() %></textarea></td>
                 </tr>
                    <tr>
                  <td  colspan="4" class="bg_title">财 务 情 况</td>
                </tr>
                 <tr>
                  <th nowrap="nowrap" width="150px;">纸费</th>
                  <td width="200px;"><%=o.getPaperCost() %></td>
                  <th nowrap="nowrap" width="150px;">印刷费</th> 
                  <td width="200px;"><%=o.getPrintCost() %></td>
                  
                  
                </tr>
                
                <tr>
                  <th nowrap="nowrap">覆膜费</th>
                  <td ><%=o.getCoverCost() %></td>
                  <th nowrap="nowrap">烫金费</th> 
                  <td ><%=o.getGoldCost() %></td>
                </tr>
                
                <tr>
                  <th nowrap="nowrap">菲林费</th>
                  <td ><%=o.getFilmCost() %></td>
                  
                  <th nowrap="nowrap">CTP费</th> 
                  <td ><%=o.getOtherCost() %></td>
                  
                </tr>
                
                <tr>
                  <th nowrap="nowrap">总金额</th>
                  <td ><%=o.getTotal() %></td>
                  <th nowrap="nowrap">单价</th> 
                  <td ><%=o.getPrice() %></td>
                </tr>
                
                <tr>
                  <th nowrap="nowrap">预付款</th>
                  <td ><%=o.getFrontCash() %></td>
                  <th nowrap="nowrap">付款方式</th> 
                  <td ><%=o.getPayType() %></td>
                </tr>
                
                <tr>
                  <th nowrap="nowrap">欠款</th>
                  <td >
                  <%=o.getDebtCash() %>
                  </td>
                  <th nowrap="nowrap">纯利润</th> 
                  <td >
                  <%=o.getProfitCash() %>
                  </td>
                </tr>
                 <tr>
                  <td  colspan="4" class="bg_title">其 他 信 息</td>
                </tr>
                <tr>
                  <th nowrap="nowrap">特别提示</th>
                  <td >
                  <%=o.getSpecial() %>
                  </td>
                  <th nowrap="nowrap">下单人</th> 
                  <td >
                  <%=o.getCreator() %>
                  </td>
                </tr>
                 <tr>
                  <td  colspan="4" class="bg_title" nowrap="nowrap" height="30px;">生 产 情 况
                  </td>
                </tr>
                </table>
                <%for(Taskinfo t : tlist){
                	PresMakings p = null;
                	for(PresMakings m : pm){
                		if(t.getGoodsid().equals(m.getGoodsid())){
                			p=m;
                			break;
                		}
                	}
                	 
                %>	
                <table  border="0" cellpadding="0" cellspacing="0" class="MainBody_table" id="t1">
                  <tr>
                  <th nowrap="nowrap" width="150px;">印品名称</th>
                  <td width="200px;"><%=t.getTaskName()%></td>
                   <th></th> 
                   
                   <td width="200px;">
                  </td>
                </tr>
                
                 <tr>
                 <th nowrap="nowrap">原料名称</th>
                  <td >
                  <%=p.getGoodsname() %>
                  </td>
                  <th nowrap="nowrap">原料种类</th> 
                  <td ><%=p.getGoodstype() %></td>
                  </tr>
                 <tr>
                  <th nowrap="nowrap">原料规格</th>
                  <td ><%=p.getStandard() %></td>
                  <th nowrap="nowrap">原料单位</th> 
                  <td ><%=p.getUnit()%></td>
                </tr>
                <tr>
                  <th nowrap="nowrap">印刷尺寸</th>
                  <td ><%=t.getPrintSizeType()%><%=t.getPrintSize() %>开</td>
                  <th nowrap="nowrap">成品尺寸</th> 
                  <td ><%=t.getFinishSizeType()%><%=t.getFinishSize() %>开</td>
                </tr>
                 <tr> 
                  <th nowrap="nowrap">成品数量</th>
                  <td ><%=t.getAmount() %>张</td>
                  <th nowrap="nowrap">加放数量</th> 
                  <td ><%=t.getAddAmount() %>张</td>
                </tr>
                        <tr>
                  <th nowrap="nowrap">上机转数</th>
                  <td ><%=t.getTurnAmount() %>转</td>
                  <th nowrap="nowrap">剪纸库数</th> 
                  <td ><%=t.getSubPaper() %>张</td>
                </tr>
                 <tr>
                  <th nowrap="nowrap">是否自带纸</th>
                  <td ><%=t.getSelfPaper().equals(1)?"是":"否" %></td>
                  <th nowrap="nowrap">CTP版数</th> 
                  <td ><%=t.getCtp() %></td>
                </tr>
                <tr>
                  <th nowrap="nowrap">单面双面</th>
                  <td ><%=t.getSingleDouble() %></td>
                  <th nowrap="nowrap">印刷翻法</th> 
                  <td ><%=t.getTurnOver() %></td>
                </tr>
                 <tr>
                  <th nowrap="nowrap">切刀工艺</th>
                  <td ><%=t.getCut() %></td>
                  <th nowrap="nowrap">覆膜工艺</th> 
                  <td ><%=t.getCover() %></td>
                </tr>
                <tr>
                 <th nowrap="nowrap">备注</th>
                  <td colspan="3" style="text-align: left;"><textarea name="tdescription" cols="65" rows="2" readonly="readonly"><%=t.getDescription() %></textarea></td>
                 </tr>
                 </table>
                 <%} %>
                 
          </table></td>
  </tr>
</table>
</body>
</html>